import 'package:flutter/material.dart';

/// 当前时间轴的点绘制
class CurrentPointCursor extends StatelessWidget{
  Offset offset;
  bool isHorizontal;
  CurrentPointCursor(this.offset, this.isHorizontal, {super.key});

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Transform.translate(
        offset: isHorizontal? Offset(offset.dx-18, 25): Offset(32, offset.dy -15), // 向右偏移10像素，向下偏移5像素
        child: IgnorePointer(child:  Icon(
          Icons.star,
          size: 36,
          color: Colors.yellow,
        ),
        ),
    );
  }
}